isViewUnder

open fun isViewUnder(@Nullable view: @Nullable View, x: Int, y: Int): Boolean(source)

Determine if the supplied view is under the given point in the parent view's coordinate system.

Return

true if the supplied view is under the given point, false otherwise

Parameters

view

Child view of the parent to hit test

x

X position to test in the parent's coordinate system

y

Y position to test in the parent's coordinate system